package cn.chitanda.weather.data.db

import androidx.lifecycle.LiveData
import androidx.room.*
import cn.chitanda.weather.data.weather.Basic

@Dao
interface PlaceDao {
    @Insert(onConflict = OnConflictStrategy.IGNORE)
    fun insertCity(basic: Basic)

    @Query("SELECT * FROM basic")
    fun getCityList(): LiveData<List<Basic>>

    @Delete
    fun deleteCity(basic: Basic)

}